<#include "/layout/easyuilayout.ftl"/>

<@htmlHead >
	<script type="text/javascript" src="${webinfo.basePath}/MgrScript/sysmgr/depart/js/index.js"></script>
</@htmlHead> 
<@htmlBody>
 

<div id="App_DEPART_Toolbar">    
   <input id="App_DEPART_ss" class="easyui-searchbox" style="width:280px;"  data-options="searcher:fun_App_DEPARTSearchbox,prompt:'请输入关键字...',menu:'#App_DEPART_mm'"></input>           
    <div id="App_DEPART_mm" style="width:120px">  
        <div data-options="name:'departId',iconCls:'sealist'">编号</div>
        <div data-options="name:'departCode',iconCls:'sealist'">编码</div>
        <div data-options="name:'departName',iconCls:'sealist'">名称</div>
        <div data-options="name:'departPhone',iconCls:'sealist'">联系电话</div>
    </div>  
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="fun_ShowApp_DEPARTEditForm(-2)">新增  </a>
    <span class="datagrid-btn-separator" style="float:none;"></span>
    
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-reload" plain="true" onclick="fun_ReloadApp_DEPARTList()">刷新列表</a>
 


   </div> 
<div data-options="region:'center',title:'',split:true,border:false" >
    <table id="App_DEPART_Grid"> </table> 
</div>

    <div id="treemm" class="easyui-menu" style="width: 120px;">
        <div onclick="fun_ShowApp_DEPARTEditForm(-2)" data-options="iconCls:'icon-add'">创建顶级 </div>
        <div onclick="fun_ShowApp_DEPARTEditForm(-1)" data-options="iconCls:'icon-add'">创建下级 </div>
        <div onclick="fun_ReloadApp_DEPARTList()" data-options="iconCls:'icon-add'">刷新</div>  
    </div>


<div id="App_DEPART_EditForm" class="easyui-dialog" style="width:720px;height:400px;padding:0px"  closed="true"  modal="true"    buttons="#App_DEPART_EditForm_buttons" > 
    <form  id="App_DEPART_EditForm_fm"  method="post"  >  
        <div class="fitem"  style="display:none">  
            <label>上级 ： </label>  
            <input name="pDepartId" class="easyui-numberbox" value="" data-options="required:false"   readonly="readonly"   />
        </div> 
        <div class="fitem"   style="display:none">  
            <label> 编号 : </label>  
            <input name="departId" class="easyui-numberbox" value="" data-options="required:false"     />
        </div>
        <div class="fitem" >  
            <label> 名称 : </label>  
            <input name="departName" class="easyui-validatebox" value="" data-options="required:true"     />
        </div>  
        <div class="fitem" >  
            <label> 编码 : </label>  
            <input name="departCode" class="easyui-validatebox" value="" data-options="required:true"     />
        </div> 
        <div class="fitem" >  
            <label> 类型 : </label>  
            <input name="departType" class="easyui-validatebox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem"  style="display:none" >  
            <label>归属地市 : </label>  
            <input name="apeaCode" class="easyui-validatebox" value="0851" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>是否有效： </label>  
            <input type="radio" name="removeTag" value="1" /><span>启用</span>
            <input type="radio" name="removeTag" value="0" checked="checked" /><span>停用</span>
        </div> 
        <div class="fitem" >  
            <label>地址 : </label>  
            <input name="departAddr" class="easyui-validatebox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>联系电话 : </label>  
            <input name="departPhone" class="easyui-validatebox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>级别 : </label>  
            <input name="departLevel" class="easyui-numberbox" value="5" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>描述 : </label>  
            <input name="departRemark" class="easyui-validatebox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label> 管理者： </label>  
            <input name="mgrStaffId" class="easyui-validatebox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>序号 : </label>  
            <input name="ordernum" class="easyui-numberbox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>生效日期 : </label>  
            <input name="startTime" class="easyui-datebox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>失效日期 : </label>  
            <input name="endTime" class="easyui-datebox" value="" data-options="required:false"     />
        </div>
        <div class="fitem" >  
            <label>百度坐标X : </label>  
            <input name="bdx" class="easyui-numberbox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>百度坐标Y : </label>  
            <input name="bdy" class="easyui-numberbox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>GPS坐标X : </label>  
            <input name="gpsx" class="easyui-numberbox" value="" data-options="required:false"     />
        </div> 
        <div class="fitem" >  
            <label>GPS坐标Y : </label>  
            <input name="gpsy" class="easyui-numberbox" value="" data-options="required:false"     />
        </div> 

    </form>
</div>
<div id="App_DEPART_EditForm_buttons">
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="fun_SaveApp_DEPART()">保存</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#App_DEPART_EditForm').dialog('close')">取消</a>
</div>


 
</@htmlBody>